//
//  RoomsManager.h
//  mUBB
//
//  Created by Cosmin Stirbu on 2/26/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Ticket.h"
#import "Room.h"
#import "Faculty.h"
#import "RoomsProtocol.h"

@interface RoomsManager : NSObject

// Singleton Instance
+ (RoomsManager *)instance;

// Retrieve rooms
- (Ticket *)getRoomsByKeyword:(NSString *)keyWord take:(NSInteger)take skip:(NSInteger)skip delegate:(id<RoomsProtocol>)delegate;

// Retrieve room details
- (Ticket *)getDetailsForRoom:(Room *)room delegate:(id<RoomsProtocol>)delegate;

// Retrieve rooms available for faculty
- (Ticket *)getRoomsForFaculty:(Faculty *)faculty delegate:(id<RoomsProtocol>)delegate;

// Groups Rooms By Building
- (NSDictionary *)groupRoomsByBuildings:(NSArray *)rooms;

@end
